package monopoly.ui;

import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTable;

public class ViewPropertiesGUI extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public void init(){
		this.setTitle("View Properties");
		this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
		this.setResizable(false);
		this.setSize(400, 500);
		this.setVisible(true);
		JPanel panel = new JPanel();
		panel.setBackground(Color.WHITE);
		
		// create Tab Pane
		JTabbedPane tabPane = new JTabbedPane();
		tabPane.setSize(400, 500);
		
		JPanel utilities = new JPanel();
		JPanel purpleProperties = new JPanel();
		JPanel lightBlueProperties = new JPanel();
		JPanel maroonProperties = new JPanel();
		JPanel orangeProperties = new JPanel();
		JPanel redProperties = new JPanel();
		JPanel yellowProperties = new JPanel();
		JPanel greenProperties = new JPanel();
		JPanel babyBlueProperties =  new JPanel ();
		JPanel cards = new JPanel();
		
		tabPane.addTab("Utilities", utilities);
		tabPane.addTab("Purple", purpleProperties);
		tabPane.addTab("Light Blue", lightBlueProperties);
		tabPane.addTab("Maroon", maroonProperties);
		tabPane.addTab("Orange", orangeProperties);
		tabPane.addTab("Red", redProperties);
		tabPane.addTab("Yellow", yellowProperties);
		tabPane.addTab("Green", greenProperties);
		tabPane.addTab("Baby Blue", babyBlueProperties);
		tabPane.addTab("Cards", cards);
		
		JTable purpleTable = new JTable();
		
		purpleProperties.add(purpleTable);
		panel.add(tabPane);
		this.setLayout(new GridLayout(1,1));
		this.getContentPane().add(panel);
	}

}
